<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app{
            background-color:aqua;
            width:100px;
            height:20px;

            margin:0 auto;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="">{{count(1000)}}</div>
    </div>
    <script language="javaScript" src="../JS文件/vue.js"></script>
    <script language="javaScript">
        var vm = new Vue({
            el:"#app",
            data:{
                msg:"hello world!",
                num:10,

            },
            computed:{
                count(){
                    return function(index){
                    return index+1;
                    }
                }
            }
        })
    </script>
</body>
</html>